package com.nuoyuan.wx.service.respcode;

/**
 * @Package com.nuoyuan.wx.service.respcode
 * @ClassName AuthcodeRespCodeEnum
 * @Description TODO
 * @Author linus
 * @Date 2020-02-21 21:48
 * @Version 1.0
 **/
public enum AuthcodeRespCodeEnum {

    SEND_TWO_MANY("0001", "短信发送过于频繁, 请稍后再试"),
    EXPIRED("0002", "验证码已经过期, 请重新发送"),
    AUTHCODE_ERROR("0003", "验证码错误"),
    SEND_FAIL("0004", "短信发送失败, 请稍后再试");


    private String code;
    private String msg;

    public String getCode() {
        return BizTypeEnum.AUTHCODE.getCode() + code;
    }

    public String getMsg() {
        return msg;
    }

    AuthcodeRespCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
